print('欢迎使用Jian Recorder')
print('正在加载程序中')

import functions

print('\033[32m加载完成\033[0m')

while True:
    choice = input('请选择要进行的操作(1-录制 2-播放 3-优化 4-设置 5-退出):')
    if choice == '1':
        functions.terminal_record()
    elif choice == '2':
        functions.terminal_play()
    elif choice == '3':
        functions.terminal_optimize()
    elif choice == '4':
        functions.terminal_set_settings()
    elif choice == '5':
        raise SystemExit
    print()
